package com.froggyware.tadpole.core;

/**
 * Configuration options for the data store
 * User: steven
 * Date: 9/19/11
 * Time: 9:44 PM
 */
public class DataStoreConfigurator {


    private String target;
    private String userName;
    private String password;

    private boolean enableCompression;


    public DataStoreConfigurator(String target) {
        this.target=target;
    }

    /**
     * Target for the data store.  This can be a file director /data/mydatabase/  or a IP address such as 192.168.1.1
     * or a HTTP://www.site.com or even a SVN respository, now how cool would that be.
     * @return
     */
    public String getTarget() {
        return target;
    }

    /**
     * Target for the data store.  This can be a file director /data/mydatabase/  or a IP address such as 192.168.1.1
     * or a HTTP://www.site.com or even a SVN respository, now how cool would that be.
     * @param target
     */
    public void setTarget(String target) {
        this.target = target;
    }

    /**
     * Username if required for access to data store
     * @return the username
     */
    public String getUserName() {
        return userName;
    }

    /**
     * Username if required for access to data store
     * @param userName the username
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * Password for access to a data store, if required.  No encryption is done here.
     * @return the password
     */
    public String getPassword() {
        return password;
    }

    /**
     * Password for access to a data store, if required.  No encryption is done here.
     * @param password the password you want.
     */
    public void setPassword(String password) {
        this.password = password;
    }

    public boolean isEnableCompression() {
        return enableCompression;
    }

    public void setEnableCompression(boolean enableCompression) {
        this.enableCompression = enableCompression;
    }
}
